{template 'common/header'}
<div class="main">
	<ul class="nav nav-tabs">
		<li{if $_GPC['do'] == 'manage'} class="active"{/if}><a href="{php echo $this->createWebUrl('manage');}"> 拆礼盒活动</a></li>
		<li{if $_GPC['do'] == 'post'} class="active"{/if}><a href="{php echo url('platform/reply/post',array('m'=>'stonefish_chailihe'));}"><i class="fa fa-plus"></i> 添加拆礼盒活动</a></li>
		<li{if $_GPC['do'] == 'template'} class="active"{/if}><a href="{php echo $this->createWebUrl('template');}"> 活动模板</a></li>
        <li{if $_GPC['do'] == 'templatepost'} class="active"{/if}><a href="{php echo url('site/entry/templatepost',array('m'=>'stonefish_chailihe'));}"><i class="fa fa-plus"></i> 添加活动模板</a></li>
		<li{if $_GPC['do'] == 'tmplmsg'} class="active"{/if}><a href="{php echo $this->createWebUrl('tmplmsg');}"> 消息模板</a></li>
        <li{if $_GPC['do'] == 'tmplmsgpost'} class="active"{/if}><a href="{php echo url('site/entry/tmplmsgpost',array('m'=>'stonefish_chailihe'));}"><i class="fa fa-plus"></i> 添加消息模板</a></li>
		<li{if $_GPC['do'] == 'lihestyle'} class="active"{/if}><a href="{php echo $this->createWebUrl('lihestyle');}"> 礼盒样式</a></li>
        <li{if $_GPC['do'] == 'lihestylepost' || $_GPC['do'] == ''} class="active"{/if}><a href="{php echo url('site/entry/lihestylepost',array('m'=>'stonefish_chailihe'));}"><i class="fa fa-plus"></i> {if $item['liheid']}修改{else}添加{/if}礼盒样式</a></li>
	</ul>
	<form action="" class="form-horizontal form" method="post" enctype="multipart/form-data">
	<input type="hidden" name="id" value="{$item['liheid']}">
	<input type="hidden" name="uniacid" value="{$item['uniacid']}">
    <div class="panel panel-default">
	    <div class="panel-heading">礼盒样式配置{if $item['uniacid']==0}系统内部样式不可修改{/if}</div>
	        <div class="panel-body">
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label" style="color:red">礼盒样式名称</label>
					<div class="col-sm-9">
						<input type="text" name="title" value="{if !empty($item['title'])}{$item['title']}{/if}" class="form-control">
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">选取时样式</label>
					<div class="col-sm-9">
						{php echo tpl_form_field_image('thumb1',$item['thumb1']);}
						<div class="help-block">图片大小建议232 * 215</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">打开时样式</label>
					<div class="col-sm-9">
						{php echo tpl_form_field_image('thumb2',$item['thumb2']);}
						<div class="help-block">图片大小建议475 * 435</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">打开后样式</label>
					<div class="col-sm-9">
						{php echo tpl_form_field_image('thumb3',$item['thumb3']);}
						<div class="help-block">图片大小建议225 * 208</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">商家LOGO广告</label>
					<div class="col-sm-9">
						{php echo tpl_form_field_image('shangjialogo',$item['shangjialogo']);}
						<div class="help-block">图片大小建议50 * 50</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">礼盒样式声音</label>
					<div class="col-sm-9">
						<select name="music" class="form-control">
						    <option value="1" {if $item['music']==1}selected{/if}>声音一</option>
							<option value="2" {if $item['music']==2}selected{/if}>声音二</option>
							<option value="3" {if $item['music']==3}selected{/if}>声音三</option>
							<option value="4" {if $item['music']==4}selected{/if}>声音四</option>
							<option value="5" {if $item['music']==5}selected{/if}>声音五</option>
							<option value="6" {if $item['music']==6}selected{/if}>声音六</option>
							<option value="7" {if $item['music']==7}selected{/if}>声音七</option>
							<option value="8" {if $item['music']==8}selected{/if}>声音八</option>
					    </select>
					</div>
				</div>
	        </div>			
        </div>
		<div class="form-group">
		    <div class="col-sm-12">
			    {if $item['uniacid']}
				    <input type="hidden" name="edit" value="yes">
					<button type="submit" class="btn btn-primary col-lg-3" name="submit" value="保存礼盒样式配置">保存礼盒样式配置</button>
				{else}
				    <input type="hidden" name="fuzhi" value="yes">
					<button type="submit" class="btn btn-primary col-lg-3" name="submit" value="复制后修改">复制后修改</button>
				{/if}
			    <input type="hidden" name="token" value="{$_W['token']}" />
		    </div>
	    </div>
    </div>
	</form>
</div>
{template 'common/footer'}